package net.xi.news.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import net.xi.news.pojo.Tag;

import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TagService extends IService<Tag> {



    //根据标签名得到标签
    Tag getTagByName(String name);

    //分页，列出标签
    Page<Tag> listTag(Pageable pageable);

    List<Tag> getAllTag();

    //找到前？标签
    List<Tag> tagTop(Integer size);

    //列出标签，news里面没有建立关联
    List<Tag> ListTag(String ids);

}
